# coding: utf-8

import os
import sys

base_path = os.path.dirname(os.path.abspath(__file__))
sys.path.append(base_path)
env_path = os.path.join(base_path, '.env')
if os.path.exists(env_path):
    print('Importing environment from .env...')
    with open(env_path) as f:
        for line in f.readlines():
            var = line.strip().split('=', 1)
            os.environ[var[0]] = var[1]
